home *** CD-ROM | disk | FTP | other *** search
-
- #include <dos.h>
- #include "netbios.h"
-
- extern int net_error;
-
- /**********************************************************
- * int_netbios - interrupt NetBIOS with net control block
- * Parameters: ncb (in/out) - initialized net control block
- * Global:
- * _ES - ES register
- * _BX - BX register
- * net_error - set to command return code
- * History: Original code by William H. Roetzheim
- ***********************************************************/
-
- void int_netbios(struct net_control_block *ncb)
- {
- _ES = FP_SEG(ncb);
- _BX = FP_OFF(ncb);
- geninterrupt(0x5C);
- net_error = ncb->retcode;
- }
-